#include "InetAddress.h"
#include "AlarmAcceptor.h"
#include "LogAcceptor.h"
#include "PatientAcceptor.h"
#include "MyReactor.h"
#include "EventTypes.h"


#include <string>

int main()
{
  InetAddress addr1("localhost", "15000");
  InetAddress addr2("localhost", "15001");
  InetAddress addr3("localhost", "15002");

  AlarmAcceptor alarm(addr1, MyReactor::instance());
  LogAcceptor log(addr2, MyReactor::instance());
  PatientAcceptor patient(addr3, MyReactor::instance());

  std::cout << "Server is ready! - listening for connections\n";

  for (;;)
    {
      MyReactor::instance()->handleEvents();
    }
}
